package edu.wust.homework.service;

import com.baomidou.mybatisplus.extension.service.IService;
import edu.wust.homework.entity.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IStudentService extends IService<Student> {

    public Student getStuByUserName(String id);

    public int register(Student student);

    public int modifyPassword(String userName,String oldPassword,String newPassword);


    public int deleteById(Integer id);

    public int deleteByUsername(String userName);

    public List<Student> getAllStudents();

    List<Student> getAllStudentsByPage(long current, long size);

    public boolean updateStudentInfo(Student student) ;
}
